package com.zy.explore.sys.interfaces.frm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * description 下载考勤请求Frm
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2021年07月07日 00:32
 */
@ApiModel("下载考勤请求Frm")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AttendDownloadFrm {

    @ApiModelProperty(value = "下载类型 1.部门考勤 2.员工考勤", required = true, example = "1")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "部门/员工名称", required = true, example = "开发部/张三")
    @NotBlank(message = "部门/员工名称不能为空")
    private String name;

    @ApiModelProperty(value = "部门/员工ID", required = true, example = "1")
    @NotBlank(message = "部门/员工ID不能为空")
    private String id;

    @ApiModelProperty(value = "年份", required = true, example = "2021")
    @NotBlank(message = "年份不能为空")
    private String year;

    @ApiModelProperty(value = "月份", required = true, example = "6")
    @NotBlank(message = "月份不能为空")
    private String month;

}
